﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;

namespace PongGame
{
    class BackGround:Sprite
    {
        

        public BackGround(Texture2D TextureImage, Vector2 position, Vector2 speed,
           Rectangle Rect, Rectangle? SourceRect, Color Color)
            :base(TextureImage, position, speed, Rect, SourceRect, Color) 
        { }

        public override void Draw(SpriteBatch spriteBatch)
       {
          spriteBatch.Begin();
          spriteBatch.Draw(textureImage, new Rectangle(0, 0, rect.Width, rect.Height), Color.LightGray);
          spriteBatch.End();
       }
    }
}
